package com.joplus.housekeeper.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by ccm on 2016/12/14 17:10
 */

public class LinquOrderPutBean implements Parcelable {
    private String accountId="";
    private String addressId="";
    private String serId="";
    private String comment="";
    private int coordtype=0;
    private double deliverDistance=0;
    private double deliverFee=0;
    private double receiverLatitude=0;
    private double receiverLongitude=0;
    private double senderLatitude=0;
    private double senderLongitude=0;
    private int type=0;
    private String deliverTime="";
    private String receiverName="";
    private String receiverAddress="";
    private String receiverPhone="";
    private String senderAddress="";
    private String senderName="";
    private String senderPhone="";
    private String photoUrl="";
    private String productName="";
    private String orderType="";

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public String getSerId() {
        return serId;
    }

    public void setSerId(String serId) {
        this.serId = serId;
    }

    public static Creator<LinquOrderPutBean> getCREATOR() {
        return CREATOR;
    }

    public String getPhotoUrl() {
        return photoUrl;
    }

    public void setPhotoUrl(String photoUrl) {
        this.photoUrl = photoUrl;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public String getAddressId() {
        return addressId;
    }

    public void setAddressId(String addressId) {
        this.addressId = addressId;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public int getCoordtype() {
        return coordtype;
    }

    public void setCoordtype(int coordtype) {
        this.coordtype = coordtype;
    }

    public double getDeliverDistance() {
        return deliverDistance;
    }

    public void setDeliverDistance(double deliverDistance) {
        this.deliverDistance = deliverDistance;
    }

    public double getDeliverFee() {
        return deliverFee;
    }

    public void setDeliverFee(double deliverFee) {
        this.deliverFee = deliverFee;
    }

    public double getReceiverLatitude() {
        return receiverLatitude;
    }

    public void setReceiverLatitude(double receiverLatitude) {
        this.receiverLatitude = receiverLatitude;
    }

    public double getReceiverLongitude() {
        return receiverLongitude;
    }

    public void setReceiverLongitude(double receiverLongitude) {
        this.receiverLongitude = receiverLongitude;
    }

    public double getSenderLatitude() {
        return senderLatitude;
    }

    public void setSenderLatitude(double senderLatitude) {
        this.senderLatitude = senderLatitude;
    }

    public double getSenderLongitude() {
        return senderLongitude;
    }

    public void setSenderLongitude(double senderLongitude) {
        this.senderLongitude = senderLongitude;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getDeliverTime() {
        return deliverTime;
    }

    public void setDeliverTime(String deliverTime) {
        this.deliverTime = deliverTime;
    }

    public String getReceiverName() {
        return receiverName;
    }

    public void setReceiverName(String receiverName) {
        this.receiverName = receiverName;
    }

    public String getReceiverAddress() {
        return receiverAddress;
    }

    public void setReceiverAddress(String receiverAddress) {
        this.receiverAddress = receiverAddress;
    }

    public String getReceiverPhone() {
        return receiverPhone;
    }

    public void setReceiverPhone(String receiverPhone) {
        this.receiverPhone = receiverPhone;
    }

    public String getSenderAddress() {
        return senderAddress;
    }

    public void setSenderAddress(String senderAddress) {
        this.senderAddress = senderAddress;
    }

    public String getSenderName() {
        return senderName;
    }

    public void setSenderName(String senderName) {
        this.senderName = senderName;
    }

    public String getSenderPhone() {
        return senderPhone;
    }

    public void setSenderPhone(String senderPhone) {
        this.senderPhone = senderPhone;
    }


    public LinquOrderPutBean() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.accountId);
        dest.writeString(this.addressId);
        dest.writeString(this.comment);
        dest.writeInt(this.coordtype);
        dest.writeDouble(this.deliverDistance);
        dest.writeDouble(this.deliverFee);
        dest.writeDouble(this.receiverLatitude);
        dest.writeDouble(this.receiverLongitude);
        dest.writeDouble(this.senderLatitude);
        dest.writeDouble(this.senderLongitude);
        dest.writeInt(this.type);
        dest.writeString(this.deliverTime);
        dest.writeString(this.receiverName);
        dest.writeString(this.receiverAddress);
        dest.writeString(this.receiverPhone);
        dest.writeString(this.senderAddress);
        dest.writeString(this.senderName);
        dest.writeString(this.senderPhone);
        dest.writeString(this.photoUrl);
        dest.writeString(this.productName);
        dest.writeString(this.orderType);
    }

    protected LinquOrderPutBean(Parcel in) {
        this.accountId = in.readString();
        this.addressId = in.readString();
        this.comment = in.readString();
        this.coordtype = in.readInt();
        this.deliverDistance = in.readDouble();
        this.deliverFee = in.readDouble();
        this.receiverLatitude = in.readDouble();
        this.receiverLongitude = in.readDouble();
        this.senderLatitude = in.readDouble();
        this.senderLongitude = in.readDouble();
        this.type = in.readInt();
        this.deliverTime = in.readString();
        this.receiverName = in.readString();
        this.receiverAddress = in.readString();
        this.receiverPhone = in.readString();
        this.senderAddress = in.readString();
        this.senderName = in.readString();
        this.senderPhone = in.readString();
        this.photoUrl = in.readString();
        this.productName = in.readString();
        this.orderType = in.readString();
    }

    public static final Creator<LinquOrderPutBean> CREATOR = new Creator<LinquOrderPutBean>() {
        @Override
        public LinquOrderPutBean createFromParcel(Parcel source) {
            return new LinquOrderPutBean(source);
        }

        @Override
        public LinquOrderPutBean[] newArray(int size) {
            return new LinquOrderPutBean[size];
        }
    };

    @Override
    public String toString() {
        return "LinquOrderPutBean{" +
                "accountId=\"" + accountId + '\'' +
                ", addressId='" + addressId + '\'' +
                ", comment='" + comment + '\'' +
                ", coordtype=" + coordtype +
                ", deliverDistance=" + deliverDistance +
                ", deliverFee=" + deliverFee +
                ", receiverLatitude=" + receiverLatitude +
                ", receiverLongitude=" + receiverLongitude +
                ", senderLatitude=" + senderLatitude +
                ", senderLongitude=" + senderLongitude +
                ", type=" + type +
                ", deliverTime='" + deliverTime + '\'' +
                ", receiverName='" + receiverName + '\'' +
                ", receiverAddress='" + receiverAddress + '\'' +
                ", receiverPhone='" + receiverPhone + '\'' +
                ", senderAddress='" + senderAddress + '\'' +
                ", senderName='" + senderName + '\'' +
                ", senderPhone='" + senderPhone + '\'' +
                ", photoUrl='" + photoUrl + '\'' +
                ", productName='" + productName + '\'' +
                '}';
    }
}
